const moment = require('moment')
let bar = moment().format()
console.log(bar)
let dt = new Date()
let foo = moment(dt).format('YYYY-MM-DD  HH:mm:ss')
console.log(foo);